const {defineConfig} = require('@vue/cli-service');
const {resolve} = require('path');
module.exports = defineConfig({
  transpileDependencies: true,

  configureWebpack: {
    plugins: [],
    resolve: {
      alias: {
        '@plat': resolve(__dirname, 'src/components/hhd/plat'),
        '@req': resolve(__dirname, 'src/request'),
        '@hhd': resolve(__dirname, 'src/components/hhd'),
        '@utils': resolve(__dirname, 'src/utils'),
        '@': resolve(__dirname, 'src'),
      },
      fallback: {
        "path": false,
        "util": false,
        "url": false,
        "http": false,
        "https": false,
        "stream": false,
        "assert": false,
        "querystring": false,
        "zlib": false
      }
    }
  },
  devServer: {
    port: 3000,
    proxy: {
      '/icp': {
        target: 'http://testnk.hhd.com.cn'
      }
    }
  }
});
